
#ifndef  _DEFINE_H_
#define  _DEFINE_H_


#define N_WEB_TASK 10
#define N_HTTP_IMG  8
#define N_IMG_TASKS 16
// 每个文件存放的最大数量。
#define N_Insert_Add_Task   50  // 每次从指定的任务池中取出多少个到dic中。
#define N_Change_OK_Task    10  // 每次从下载好的缓存中更新多少个倒总dic中。

// key 定义
#define INFO_ALL_NUMBER     "allNumber"
#define INFO_ONE_WebURL     "webUrl"
#define INFO_ONE_BELONG     "beloneType"
#define INFO_ONE_TITLE      "title"
#define INFO_ONE_STATE      "taskState"
#define INFO_ONE_ID         "taskID"
#define INFO_ONE_IMG_NUMBER "imageNumber"
#define INFO_ONE_IMG_ARY    "img_ary"


#define TASK_STATE_wait "0"
#define TASK_STATE_ok   "1"
#define TASK_STATE_fail "-1"
#define STATE_wait 0
#define STATE_ok   1
#define STATE_fail -1

// 路径
#define PATH_ALL        FileUtils::getInstance()->getWritablePath() + "saved/"
#define PATH_INFO_ALL   PATH_ALL + "info/"
#define PATH_IMAGE_ALL  PATH_ALL + "image/"




// 网站定义;
#define WEB_69 "69bobo"
#define WEB_567 "567eee"


#endif






